/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.product;

import com.thinkgem.jeesite.modules.hk.shop.entity.category.HkShopCategoryColor;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购商品颜色Entity
 * @author 罗天文
 * @version 2018-05-19
 */
public class HkShopProductColor extends DataEntity<HkShopProductColor> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 颜色名称
	private HkShopCategoryColor categoryColor;		// 分类颜色id
	private HkShopProduct product;		// 商品id
	private String[] propertyvalue;		// 属性值ID

	public String[] getPropertyvalue() {
		return propertyvalue;
	}

	public void setPropertyvalue(String[] propertyvalue) {
		this.propertyvalue = propertyvalue;
	}

	public HkShopProductColor() {
		super();
	}

	public HkShopProductColor(String id){
		super(id);
	}

	@Length(min=0, max=32, message="颜色名称长度必须介于 0 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public HkShopCategoryColor getCategoryColor() {
		return categoryColor;
	}

	public void setCategoryColor(HkShopCategoryColor categoryColor) {
		this.categoryColor = categoryColor;
	}
	
	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
}